<?php
/* [$WindsForce] (C)Hunzhiwange.COM Since 2014.07.01.
   家居公司介绍大文本模型($$)*/

!defined('Q_PATH') && exit;

class JiajucompanycontentModel extends CommonModel{

	static public function init__(){
		return array(
			'table_name'=>'jiajucompanycontent',
			'check'=>array(
				'jiajucompany_content'=>array(
					array('require',Q::L('公司简介内容不能为空','__APPJIAJU_COMMON_LANG__@Model')),
				),
			),
		);
	}

	static function F(){
		$arrArgs=func_get_args();
		return ModelMeta::instance(__CLASS__)->findByArgs($arrArgs);
	}

	static function M(){
		return ModelMeta::instance(__CLASS__);
	}

	protected function beforeSave_(){
		$this->jiajucompany_content=Core_Extend::replaceAttachment(C::cleanJs($this->jiajucompany_content));
	}

}
